package com.workflow.workflowproject.controller;

import com.workflow.workflowproject.entity.FlowInfo;
import com.workflow.workflowproject.entity.FlowVersion;
import com.workflow.workflowproject.service.FlowInfoService;
import com.workflow.workflowproject.service.FlowVersionService;
import com.workflow.workflowproject.tools.Result.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@Tag(name = "流程版本信息")
@RequestMapping("/flowVersion")
public class FlowVersionController {

    @Autowired
    private FlowVersionService flowVersionService;

    /**
     * 添加流程版本信息
     *
     * @param
     * @return
     */
    @PostMapping
    @Operation(summary="添加流程版本信息",description="添加流程版本信息")
    public Result addFlowVersion(@RequestBody FlowVersion flowVersion) throws Exception{
        return flowVersionService.addFlowVersion(flowVersion);
    }

}
